package net.thumbtack;

import net.thucydides.core.annotations.*;
import net.thucydides.core.pages.Pages;
import net.thucydides.junit.runners.ThucydidesRunner;
import net.thumbtack.requirements.Application;
import net.thumbtack.steps.EndUserSteps;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.openqa.selenium.WebDriver;

@Story(Application.Search.SearchByKeyword.class)
@RunWith(ThucydidesRunner.class)
public class LoginInApp {

    @Managed(uniqueSession = true)
    public WebDriver webdriver;

    @ManagedPages(defaultUrl = "http://82.200.2.19")
    public Pages pages;

    @Steps
    public EndUserSteps endUser;

    @Issue("Login")
    @Test
    public void connectWithFB() {
        endUser.is_the_opening_page();
		endUser.connect_sigin("dusia.iwanowa1988@yandex.ru","89087921481");

    endUser.should_opening_page("Recent Activity is open");

    }

  //  @Test
 //    public void sentMessageToCandidate() {
  // endUser.should_opening_page("Recent activity");
  //  endUser.();
  //   endUser;
// }

   // @Pending @Test
    //public void searching_by_ambiguious_keyword_should_display_the_disambiguation_page() {
   // }
} 